
const initialState = {
  list:[],
  sonList:[]
}

export default (state = initialState, { type, payload }) => {
  const newState =JSON.parse(JSON.stringify(state))
  switch (type) {

  case "GET_LIST":
    newState.list=payload;
    return newState

  default:
    return newState
  }
}
